USE [SONALIKA_BGK_UPDATED]
GO

/****** Object:  Table [dbo].[JOB_TRACTOR_CUSTOMERS]    Script Date: 13-Jul-14 10:03:05 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[JOB_TRACTOR_CUSTOMERS](
	[JOBTRACTOR_ID] [int] IDENTITY(1,1) NOT NULL,
	[ENGINE_NO] [varchar](50) NULL,
	[CHASSIS_NO] [varchar](50) NULL,
	[MODEL] [varchar](50) NULL,
	[PDI_HOURS] [decimal](18, 2) NULL,
	[DATEOF_INSTALLATION] [datetime] NULL,
	[CUSTOMER_ID] [int] NULL,
 CONSTRAINT [PK_JOBTRACTORCUSTOMERS] PRIMARY KEY CLUSTERED 
(
	[JOBTRACTOR_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[JOB_TRACTOR_CUSTOMERS]  WITH CHECK ADD  CONSTRAINT [FK_JOB_TRACTOR_CUSTOMERS_CUSTOMER] FOREIGN KEY([CUSTOMER_ID])
REFERENCES [dbo].[CUSTOMER] ([CUSTOMER_ID])
GO

ALTER TABLE [dbo].[JOB_TRACTOR_CUSTOMERS] CHECK CONSTRAINT [FK_JOB_TRACTOR_CUSTOMERS_CUSTOMER]
GO

